package com.service;

import com.dao.DepartmentDao;
import com.domain.Department;

import java.util.List;

public class departmentService {
    private DepartmentDao departmentDao = new DepartmentDao();

    /**
     * 查询获取所有部门
     * @return  Department实体类对象
     */
    public List<Department> findAllDepartment(){
        List<Department> list = departmentDao.findAllDepartment();
        return list;
    }
}
